import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;


public class Password {
    private static Logger logger = LoggerFactory.getLogger(Password.class);

    public static void main(String[] args) {
       secret();
    }

    public static void secret() {
        //用户密码
        String password = "framework@123456";
        //密码加密
        BCryptPasswordEncoder passwordEncoder=new BCryptPasswordEncoder();
        //加密
        String newPassword = passwordEncoder.encode(password);
        logger.info(newPassword);
    }
}
